responseCode

open fun responseCode(): Int

Returns the HTTP response code or 0 if the request has been failed or canceled.